package ca.benow.transmission.model;

import org.json.JSONObject;

public class TorrentFile {

	String name;
	long size;
	long completed;

	public TorrentFile(JSONObject object) {
		name = object.optString("name");
		completed = (object.optLong("bytesCompleted"));
		size = (object.optLong("length"));

	}

	public String getName() {
		return name;
	}

	public long getSize() {
		return size;
	}

	public long getCompleted() {
		return completed;
	}

}
